﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace MessMain
{
    class UpDateList
    {
        Client cl;
        public UpDateList(Client cl) 
        {
            this.cl = cl;
        }
        public void run() 
        {
            cl.putMsg("/whoami " + Comunication.myName);
            Thread.Sleep(1000);
            while (true)
            {
                cl.putMsg("/updateList");
                Thread.Sleep(6000);
            }
        }
    }
}
